package com.showdoc.mapper.impl;

import com.showdoc.mapper.ItemMapper;
import com.showdoc.pojo.Item;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class ItemMapperImpl implements ItemMapper {
    @Autowired
    private ItemMapper itemMapper;

    @Override
    public Item queryById(Long itemId) {
        return itemMapper.queryById(itemId);
    }

    @Override
    public Item queryByName(String itemName) {
        return itemMapper.queryByName(itemName);
    }

    @Override
    public List<Item> queryAll() {
        return itemMapper.queryAll();
    }

    @Override
    public long count(Item item) {
        return itemMapper.count(item);
    }

    @Override
    public int insert(Item item) {
        return itemMapper.insert(item);
    }

    @Override
    public int insertBatch(List<Item> entities) {
        return itemMapper.insertBatch(entities);
    }

    @Override
    public long insertOrUpdateBatch(List<Item> entities) {
        return itemMapper.insertOrUpdateBatch(entities);
    }

    @Override
    public int update(Item item) {
        return itemMapper.update(item);
    }

    @Override
    public boolean save(Item item) {
        return itemMapper.save(item);
    }

    @Override
    public int deleteById(Long itemId) {
        return itemMapper.deleteById(itemId);
    }

    @Override
    public List<Item> selectByUid(Long uid) {
        return itemMapper.selectByUid(uid);
    }
}
